package com.ruoyi.project.system.moneydetail.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 消费记录对象 sys_users_moneydetail
 * 
 * @author ruoyi
 * @date 2023-03-01
 */
public class UsersMoneydetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 变动原因 */
    @Excel(name = "变动原因")
    private String changeBy;

    /** 变动金额 */
    @Excel(name = "变动金额")
    private BigDecimal money;

    /** 开始金额 */
    @Excel(name = "开始金额")
    private BigDecimal startMoney;

    /** 结束金额 */
    @Excel(name = "结束金额")
    private BigDecimal endMoney;

    /** 备注 */
    @Excel(name = "备注")
    private String beizhu;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setChangeBy(String changeBy)
    {
        this.changeBy = changeBy;
    }

    public String getChangeBy()
    {
        return changeBy;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setStartMoney(BigDecimal startMoney)
    {
        this.startMoney = startMoney;
    }

    public BigDecimal getStartMoney()
    {
        return startMoney;
    }
    public void setEndMoney(BigDecimal endMoney)
    {
        this.endMoney = endMoney;
    }

    public BigDecimal getEndMoney()
    {
        return endMoney;
    }
    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }

    public String getBeizhu()
    {
        return beizhu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("changeBy", getChangeBy())
            .append("money", getMoney())
            .append("startMoney", getStartMoney())
            .append("endMoney", getEndMoney())
            .append("beizhu", getBeizhu())
            .append("createTime", getCreateTime())
            .toString();
    }
}
